const testApi = {
  auth: {
    prepare: 'https://tencent-customer.test.fit-start.co/corp/auth/prepare?code=',
    login: 'https://tencent-customer.test.fit-start.co/corp/auth/login?userid='
  },
  url: "https://weapp-api.test.fit-start.co"
}

const prodApi = {
  auth: {
    prepare: 'https://tencent-customer.fit-start.co/corp/auth/prepare?code=',
    login: 'https://tencent-customer.fit-start.co/corp/auth/login?userid='
  },
  url: "https://weapp-api.fit-start.co/"
  //url: "http://127.0.0.1:8085/fitstart-weapp-api"
}

const api = prod => {
  return prod ? prodApi : testApi
}

const resource = {
  qiniu: "https://prod.qiniu.fit-start.co/",
  FU_XING: 5,
  test_mobile: "17621360181"
}

module.exports = {
  api: api,
  resource: resource
}